import Vue from 'vue';
import Router from 'vue-router'
import home from '../view/home.vue'
import cliassfication from '../view/cliassfication.vue'
import shopping from '../view/shopping.vue'
import my from '../view/my.vue'
import login from '../view/login.vue'
import regist from '../view/regist.vue'
import details from '../view/details.vue'
import buy from '../view/buy.vue'
import editList from '../view/editList.vue'
import addressEdit from '../view/addressEdit.vue'
Vue.use(Router)
const routes = [{
        path: '/',
        component: home,
    }, {
        path: '/cliassfication',
        component: cliassfication
    },
    {
        path: '/shopping',
        component: shopping
    },
    {
        path: '/my',
        component: my
    },
    {
        path: '/login',
        component: login
    }, {
        path: '/regist',
        component: regist
    },
    {
        path: '/details/:id',
        component: details
    }, {
        path: '/buy/:id',
        component: buy
    }, {
        path: '/editList/:id',
        component: editList
    },
    {
        path: '/addressEdit/:id',
        component: addressEdit
    },
]
let router = new Router({
    routes,
});
export default router;